package test;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.film.dao.filmInfoMapper;
import com.film.pojo.filmInfo;

public class TestMGB {

	// 查询
	public static void searchAll() {
		SqlSession session = MyBatisUtil.getSqlSession();
		filmInfoMapper fim = session.getMapper(filmInfoMapper.class);
		filmInfo f = fim.selectByPrimaryKey(1);
		System.out.println(f);
		MyBatisUtil.close(session);

	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		searchAll();

	}

}
